<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><{$page.p_title}> - <{$setting.title}></title>
<meta content="<{$setting.keywords}>"  name="keywords"/>
<meta content="<{$setting.description}>" name="description"/>
<link href="<{$weburl}>/templates/default/<{$setting.templates}>/css/page.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<{$weburl}>/static/js/jquery.js"></script>
<link rel="stylesheet" href="<{$weburl}>/admin/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="<{$weburl}>/admin/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="<{$weburl}>/admin/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="<{$weburl}>/static/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
    //品牌选择
	$("#brand").change(function(){
		$.get("<{$weburl}>/index.php?m=ajax&ajax=1", { 
			brandid :  $("#brand").val() 
		}, function (data, textStatus){
               $("#subbrand").html(data); // 把返回的数据添加到页面上
			}
		);
	});
	//品牌选择
	$("#subbrand").change(function(){
		$.get("<{$weburl}>/index.php?m=ajax&ajax=1", { 
			subbrandid :  $("#subbrand").val() 
		}, function (data, textStatus){
               $("#subsubbrand").html(data); // 把返回的数据添加到页面上
			}
		);
	});
    <{if $setting.version==3}>
	//城市选择
	$("#province").change(function(){
		$.get("<{$weburl}>/index.php?m=ajax&ajax=1", { 
			cityid :  $("#province").val() 
		}, function (data, textStatus){
			$("#city").html(data); // 把返回的数据添加到页面上
		});
	});
	<{/if}>
	//表单验证
	$(".carform").Validform({
		tiptype:3
	});
});
</script>
</head>
<body>
<!--内容--> 
<{include file="default/`$setting.templates`/head.html"}>
<div class="nav">您当前的位置：<a href="<{$weburl}>/">首页</a> <span>></span> 买车 <span>></span> 免费发布求购信息</div>
<div class="main mt10 clearfix">
	<div class="main_left">
		<div class="sellbox">
			<h3>请填写求购信息：</h3>
			<div class="box clearfix">
				<form name="carform" class="carform" method="post" action="<{$weburl}>/<{if $setting.ishtml==1}>buycar/<{else}>index.php?m=buycar<{/if}>">
					<table cellspacing="0" cellpadding="0" width="100%"  class="sell_table">
					<{if $setting.version==3}>
                    <tr>
						<th><span class="red">*</span> 所在城市：</th>
						<td colspan="3">
							<select name="aid" id="province" datatype="n" nullmsg="请选择省份！">
								<{$selectprovince}>
							</select>
							<select name="cid" id="city" datatype="n" nullmsg="请选择城市！">
								<{$selectcity}>
							</select>
						</td>
					</tr>
					<{/if}>
                        <tr>
							<th><span class="red">*</span> 期望品牌：</th>
							<td colspan="3"><select name="p_brand" id="brand" datatype="n" nullmsg="请选择品牌！">
									<{$selectbrand}>
								</select>
								<select class="subbrand" id="subbrand" name="p_subbrand" datatype="n" nullmsg="请选择车系！">
									<option value="" selected>请选择车系</option>
								</select>
                                <select class="subbrand" id="subsubbrand" name="p_subsubbrand" datatype="n" nullmsg="请选择款式！" style="width:100px;">
								<option value="" selected>请选择款式</option>
							</select>
                               
							</td>
						</tr>
						<tr>
							<th> 期望车型：</th>
							<td><select name="p_model">
									<{$selectmodel}>
								</select></td>
						</tr>
						<tr>
							<th><span class="red">*</span> 期望求购价格：</th>
							<td><input type="text" name="p_price"  size="5" datatype="s" nullmsg="请填写价格！">
								<span class="gray">(万元)</span>
							</td>
						</tr>
						<tr>
							<th>期望行驶里程：</th>
							<td><select name="p_kilometre">
									<{$select_kilometre}>
								</select>
							</td>
						</tr>
						<tr>
							<th>期望车龄：</th>
							<td><select name="p_age">
									<{$select_age}>
								</select></td>
						</tr>
						<tr>
							<th>其他要求：</th>
							<td colspan="5"><textarea  name="p_details" rows="2" cols="90" class="textarea01"><{$cars.p_details}></textarea></td>
						</tr>
						<tr>
							<th><span class="red">*</span>姓名：</th>
							<td colspan="5"><input name="p_contact_name" type="text" size="30" class="inp01" value="" datatype="s" nullmsg="请填写联系人姓名！"/></td>
						</tr>
						<tr>
							<th><span class="red">*</span>手机：</th>
							<td colspan="5"><input name="p_contact_tel" id="l_tel" type="text" size="30" class="inp01" value="" datatype="m" nullmsg="请填写手机号！"/></td>
						</tr>
						<tr>
							<th><span class="red">*</span> 验证码：</th>
							<td colspan="5"><input name="authcode" id="cftcode"  type="text"  class="inp02" datatype="s" ajaxurl="<{$weburl}>/index.php?m=ajax&ajax=1" nullmsg="请输入验证码！" errormsg="请输入正确的验证码！"/> <img src="<{$weburl}>/include/kcaptcha/" width="70" height="30" onclick="this.src='<{$weburl}>/include/kcaptcha/?'+Math.random();" title="点击刷新验证码" style="cursor:pointer" id="checkcode" align="absmiddle"> <span class="f12" onclick="document.getElementById('checkcode').src='<{$weburl}>/include/kcaptcha/?'+Math.random();" style="cursor:pointer">看不清？换一个</span></td>
						</tr>
						<tr>
							<td></td>
							<td><input type="submit" value="立刻发布" class="sell_but02">
								<input type="hidden" name="action" value="sellcar"></td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
	<div class="main_right">
		<{include file="default/`$setting.templates`/right.html"}>
	</div>
</div>
<!--版权--> 
<{include file="default/`$setting.templates`/foot.html"}>
</body>
</html>